/**
 * 
 */
package com.lion.jacoco.web.home.module.screen.config;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.service.form.Group;
import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.dataresolver.FormGroup;
import com.alibaba.citrus.turbine.dataresolver.Param;
import com.lion.jacoco.dao.dataobject.AppConfigDO;
import com.lion.jacoco.manager.AppManager;

/**
 * AddAppConfig.java. 2011-12-1上午10:48:43 @author LionBule.
 */
public class UpdateAppConfig {
    @Autowired
    private AppManager appManager;
    
    public void execute(@Param("id") int pid, @FormGroup("updateAppConfig") Group group, Context context) throws Exception {
        AppConfigDO appConfigDO = appManager.queryById(pid);
        group.mapTo(appConfigDO);
    }
    
}
